<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .hello{
            width: 100px;
            height: 100px;
            background: pink;

            /* display: none; */
            display: inline;
        }
        span{
            background: pink;
            width: 100px;
            height: 100px;

            /* display: block; */
            display: inline-block;
        }
    </style>
</head>
<body>
    <!-- 块级标签：默认必须独占一行 -->
    <div class="hello">嘿嘿</div>好好学习
    <hr>


    <!-- 行级标签：默认不会独占一行，不能设置宽和高 -->
    <span>哈哈</span>天天向上
</body>
</html>